<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/29
  Time: 11:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div></div>

</body>
<script src="${pageContext.request.contextPath}/js/jquery-1.12.4.min.js"></script>
<script>
    //json数据格式  json 本质上也是一个字符串,
    // json经常可以用来进行不同计算机语言之间数据的转换。
    var person = {"username":"zhagnsan","age":34};

    var persons =  [{"username":"zhagnsan","age":34},
        {"username":"zhagnsan","age":34},
        {"username":"zhaoliu","age":34},
        {"username":"zhagnsan","age":34}];


    var aa = {"cls1":[{"username":"zhagnsan","age":34},
            {"username":"zhagnsan","age":34},
            {"username":"zhaoliu","age":34},
            {"username":"zhagnsan","age":34}],
    "cls":[{"username":"zhagnsan","age":34},
        {"username":"zhagnsan","age":34},
        {"username":"zhaoliu","age":34},
        {"username":"zhagnsan","age":34}],
        "cls3":[{"username":"zhagnsan","age":34},
            {"username":"zhagnsan","age":88},
            {"username":"zhaoliu","age":34},
            {"username":"zhagnsan","age":34}]
    }

   // alert(person.username)
    $("div").html( aa.cls3[1].age);


</script>
</html>
